package com.chia.multienty.core.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.chia.multienty.core.pojo.KutaBaseEntity;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 应用版本
 * </p>
 *
 * @author Multi Tenant Auto Generator
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mt_app_version")
@ApiModel(value="AppVersion对象", description="应用版本")
public class AppVersion extends KutaBaseEntity {


    /**
     * 应用版本编号
     */
    @ApiModelProperty(value = "应用版本编号")
    @TableId(value = "version_id", type = IdType.AUTO)
    private Long versionId;

    /**
     * 租户编号
     */
    @ApiModelProperty(value = "租户编号")
    @TableField("`app_id`")
    private Long appId;

    /**
     * 版本名称
     */
    @ApiModelProperty(value = "版本名称")
    @TableField("`name`")
    private String name;

    /**
     * 版本详情
     */
    @ApiModelProperty(value = "版本详情")
    @TableField("`description`")
    private String description;

    /**
     * 原价
     */
    @ApiModelProperty(value = "原价")
    @TableField("`orig_price`")
    private BigDecimal origPrice;

    /**
     * 现价
     */
    @ApiModelProperty(value = "现价")
    @TableField("`price`")
    private BigDecimal price;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField(value = "`status`", fill = FieldFill.INSERT)
    private String status;

    /**
     * 乐观锁版本号
     */
    @ApiModelProperty(value = "乐观锁版本号")
    @TableField(value = "`version`", fill = FieldFill.INSERT)
    @Version
    private Long version;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "`create_time`", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "`update_time`", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}
